package dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface UsersDao {
	public Map<String, Object> query(@Param("account") String account,
			@Param("password") String password);

	public void add(@Param("account") String account,
			@Param("password") String password,
			@Param("reg_date") String reg_date);

	public Map<String, Object> queryone(@Param("account") String account);

	public Map<String, Object> query_nickname(@Param("id") String id);

	public List<Map> query_income(@Param("user_id") String user_id);

	public List<Map> query_pay(@Param("user_id") String user_id);

	public Map<String, Object> query_in(@Param("user_id") String user_id);

	public Map<String, Object> query_out(@Param("user_id") String user_id);

	public List<Map> query_c(@Param("user_id") String user_id);

	public List<Map> query_v(@Param("user_id") String user_id);

	public Map<String, Object> query_p(@Param("user_id") String user_id);

	public List<Map> query_o(@Param("user_id") String user_id);

	public List<Map> query_u(@Param("user_id") String user_id);

	public List<Map> select(@Param("user_id") String user_id,
			@Param("date_time") String date_time, @Param("place") String place,
			@Param("money_in") String money_in,
			@Param("money_out") String money_out, @Param("kind") String kind,
			@Param("remark") String remark);

	public Map<String, Object> lastid();

	public void adda(@Param("user_id") String user_id,
			@Param("date_time") String date_time, @Param("place") String place,
			@Param("money_in") String money_in,
			@Param("money_out") String money_out, @Param("kind") String kind,
			@Param("remark") String remark);

	public List<Map> querytwo(@Param("user_id") String user_id,
			@Param("id") String id);

	public void querydel(@Param("id") String id);
}
